package org.spdata.tsdb.client;


import java.util.concurrent.TimeUnit;

/**
 * 降频采样参数
 */
public class DownSample {
	public enum Arithmetic{
		max,
		min,
		avg,
		first,
		last,
		sum,
	}
	
	/**
	 * 算法
	 */
	private Arithmetic arithmetic;
	
	/**
	 * 采样周期
	 */
	private int frequence;
	
	/**
	 * 采样周期时间单位
	 */
	private TimeUnit unit;

	public Arithmetic getArithmetic() {
		return arithmetic;
	}

	public void setArithmetic(Arithmetic arithmetic) {
		this.arithmetic = arithmetic;
	}

	public int getFrequence() {
		return frequence;
	}

	public void setFrequence(int frequence) {
		this.frequence = frequence;
	}

	public TimeUnit getUnit() {
		return unit;
	}

	public void setUnit(TimeUnit unit) {
		this.unit = unit;
	}
	
	
}
